﻿<UserControl x:Class="TicTacToe.UI.Components.GameView2D"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" x:ClassModifier="internal" MouseLeave="MouseLeft" 
             MouseMove="MouseMoved" MouseDown="MouseClicked" 
             d:DesignHeight="618" d:DesignWidth="150">
    
    <UserControl.Resources>
        <ResourceDictionary Source="..\UIResources.xaml" />
    </UserControl.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="153*" />
            <RowDefinition Height="156*" />
            <RowDefinition Height="156*" />
            <RowDefinition Height="153*" />
        </Grid.RowDefinitions>

        <Image x:Name="image1" Grid.Row="0" Margin="0,0,0,3">
            <Image.Source>
                <DrawingImage>
                    <DrawingImage.Drawing>
                        <DrawingGroup>
                            <DrawingGroup x:Name="field1"/>
                            <DrawingGroup x:Name="preview1"/>

                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource BorderArcs}" />
                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource InnerLinePath}" />
                        </DrawingGroup>
                    </DrawingImage.Drawing>
                </DrawingImage>
            </Image.Source>
        </Image>

        <Image x:Name="image2" Grid.Row="1" Margin="0,3,0,3">
            <Image.Source>
                <DrawingImage>
                    <DrawingImage.Drawing>
                        <DrawingGroup>
                            <DrawingGroup x:Name="field2"/>
                            <DrawingGroup x:Name="preview2"/>

                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource BorderArcs}" />
                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource InnerLinePath}" />
                        </DrawingGroup>
                    </DrawingImage.Drawing>
                </DrawingImage>
            </Image.Source>
        </Image>

        <Image x:Name="image3" Grid.Row="2" Margin="0,3,0,3">
            <Image.Source>
                <DrawingImage>
                    <DrawingImage.Drawing>
                        <DrawingGroup>
                            <DrawingGroup x:Name="field3"/>
                            <DrawingGroup x:Name="preview3"/>

                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource BorderArcs}" />
                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource InnerLinePath}" />
                        </DrawingGroup>
                    </DrawingImage.Drawing>
                </DrawingImage>
            </Image.Source>
        </Image>

        <Image x:Name="image4" Grid.Row="3" Margin="0,3,0,0">
            <Image.Source>
                <DrawingImage>
                    <DrawingImage.Drawing>
                        <DrawingGroup>
                            <DrawingGroup x:Name="field4"/>
                            <DrawingGroup x:Name="preview4"/>

                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource BorderArcs}" />
                            <GeometryDrawing Pen="{StaticResource LinePen}" Geometry="{StaticResource InnerLinePath}" />
                        </DrawingGroup>
                    </DrawingImage.Drawing>
                </DrawingImage>
            </Image.Source>
        </Image>
    </Grid>
</UserControl>
